<?php
// Modul hien thoi la quan ly danh muc
$_ISA_CURRENT_MODUL_CODE = "QA";
if(isset($_REQUEST['modal_dialog_mode'])) {
	$_MODAL_DIALOG_MODE = $_REQUEST['modal_dialog_mode'];
}
if(isset($_REQUEST['fuseaction'])) {
	$fuseaction=$_REQUEST['fuseaction'];
}else{
	$fuseaction="$$$$$$";
}
if ($_MODAL_DIALOG_MODE==1){
	// Neu co bien "deny_editing" thi khong hien thi nut "Them", "Xoa"
	if(isset($_REQUEST['allow_editing_in_modal_dialog'])) {
		$v_allow_editing_in_modal_dialog = $_REQUEST['allow_editing_in_modal_dialog'];
	}else{
		$v_allow_editing_in_modal_dialog = 0;
	}
}else{
	$v_allow_editing_in_modal_dialog = 0;
}
$v_item_id = "";
if(isset($_REQUEST['hdn_item_id'])){	
	$v_item_id = intval($_REQUEST['hdn_item_id']);
}
// Bien xac dinh xem NSD hien thoi co quyen xem danh sach cau hoi
$v_is_granted_qa_question_view = _is_on_menu(_CONST_ONEGATE_QA_VIEW, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
// Xem nguoi su dung hien thoi co quyen duyet mot cau tra loi 
$v_is_granted_qa_question_approve = _is_on_menu(_CONST_ONEGATE_QA_APPROVE, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
// Xem nguoi su dung hien thoi co quyen cap nhat cau tra loi
$v_is_granted_qa_question_update = _is_on_menu(_CONST_ONEGATE_QA_UPDATE, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
// Xem nguoi su dung hien thoi co quyen xoa mot hoac nhieu cau hoi
$v_is_granted_qa_question_delete = _is_on_menu(_CONST_ONEGATE_QA_DELETE, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
?>
<script language="JavaScript">
	_MODAL_DIALOG_MODE = "<?php echo $_MODAL_DIALOG_MODE;?>";
	_ALLOW_EDITING_IN_MODAL_DIALOG = "<? echo $v_allow_editing_in_modal_dialog;?>";
</script>